package com.scau.ums.service.imp.mail;

import com.scau.ums.util.tools.SendmailUtil;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * author: 莫伟杰
 * date： 2019/8/9 16:23
 */
@Service
@Async
public class SendMailImp{
    public void sendMail(String address,String title,String content) {
        try
        {
            SendmailUtil.sendEmail(address,title,content);
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
    }
}
